package com.aidong.pay.biz.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.pay.biz.OrdergeneratedBiz;
import com.aidong.pay.dao.OrdergeneratedDao;

@Service("ordergeneratedBiz")
public class OrdergeneratedBizImpl implements OrdergeneratedBiz {
	
	private OrdergeneratedDao ordergeneratedDao;

	@Autowired
	public void setOrdergeneratedDao(OrdergeneratedDao ordergeneratedDao) {
		this.ordergeneratedDao = ordergeneratedDao;
	}

	/**
	 * 添加活动支付订单
	 * @param orders
	 */
	@Override
	public void addCampaginOrderPay(Map<String, Object> map) {
		ordergeneratedDao.addCampaginOrderPay(map);
	}

	/**
	 * 修改订单电子券号
	 * @param map
	 */
	@Override
	public void editorderTickNo(Map<String, Object> map) {
		ordergeneratedDao.editorderTickNo(map);
	}

	/**
	 * 活动时间
	 * @param campaignId
	 * @return
	 */
	@Override
	public Map<String, Object> getCampaginValidTime(int orderId) {
		return ordergeneratedDao.getCampaginValidTime(orderId);
	}

	/**
	 * 修改活动订单支付类型
	 * @param map
	 */
	@Override
	public void editorderPayType(Map<String, Object> map) {
		ordergeneratedDao.editorderPayType(map);
	}

	/**
	 * 添加课程支付订单
	 * @param orders
	 */
	@Override
	public void addCourseOrderPay(Map<String, Object> map) {
		ordergeneratedDao.addCourseOrderPay(map);
	}

	/**
	 * 课程时间
	 * @param orderId
	 * @return
	 */
	@Override
	public Map<String, Object> getCourseValidTime(int orderId) {
		return ordergeneratedDao.getCourseValidTime(orderId);
	}

	/**
	 * 得到用户手机号码
	 * @param map
	 * @return
	 */
	@Override
	public Map<String, Object> getPayMemberPhone(int orderId) {
		return ordergeneratedDao.getPayMemberPhone(orderId);
	}

	/**
	 * 去支付 得到支付剩余时间
	 * @param orderId
	 * @return
	 */
	@Override
	public Map<String, Object> getGoToPayTime(int orderId) {
		return ordergeneratedDao.getGoToPayTime(orderId);
	}

	/**
	 * 订单下单时间
	 * @param orderId
	 * @return
	 */
	@Override
	public String getOrderOverTime(int orderId) {
		return ordergeneratedDao.getOrderOverTime(orderId);
	}

	/**
	 * 得到处理状态和订单类型
	 * @param orderId
	 * @return
	 */
	@Override
	public Map<String, Object> getPayOrderDispose(int orderId) {
		return ordergeneratedDao.getPayOrderDispose(orderId);
	}

	/**
	 * 取餐时间
	 * @param orderId
	 * @return
	 */
	@Override
	public Map<String, Object> getPickValidTime(int orderId) {
		return ordergeneratedDao.getPickValidTime(orderId);
	}
	
	public Map<String, Object> getActivityType(int orderId) {
		return ordergeneratedDao.getActivityType(orderId);
	}

	@Override
	public String getGoToPayInfo(int orderId) {
		return ordergeneratedDao.getGoToPayInfo(orderId);
	}

	@Override
	public Map<String, Object> getActivityPrice(int subscribeId) {
		// TODO Auto-generated method stub
		return ordergeneratedDao.getActivityPrice(subscribeId);
	}

	@Override
	public void editorderPayTypeDiscount(Map<String, Object> map) {
		// TODO Auto-generated method stub
		ordergeneratedDao.editorderPayTypeDiscount(map);
	}

	@Override
	public void editorderPayTypeExchanges(Map<String, Object> map) {
		// TODO Auto-generated method stub
		ordergeneratedDao.editorderPayTypeExchanges(map);
	}

	@Override
	public void editorderPayTypeCoupons(Map<String, Object> map) {
		// TODO Auto-generated method stub
		ordergeneratedDao.editorderPayTypeCoupons(map);
	}
	
	/**
	 * 嘉年华活动添加到订单表
	 * @param map
	 */
	public void addCarnivalCampaginOrderPay(Map<String, Object> map){
		ordergeneratedDao.addCarnivalCampaginOrderPay(map);
	}
}
